package com.coocaa.ops.admin.v1.timedtask.constant;

/**
 * @author bijiahao
 * @date : 2019/8/6.
 * @description 定时任务类型常量
 *
 */
public final class TimedTaskTypeConstants {
    private TimedTaskTypeConstants() {

    }

    /**
     * 定时上架
     */
    public static final String TIMELY_SHELVING = "timely_shelving";
    /**
     * 推荐池更新
     */
    public static final String RECOMMEND_POOL_UPDATE = "recommend_pool_update";
    /**
     * 版面强插
     */
    public static final String TAB_FORCE_INSERT = "tab_force_insert";
    /**
     * 推荐流AB测试
     */
    public static final String REC_STREAM_AB_TEST = "rec_stream_ab_test";

    /**
     * 是否 定时上架
     *
     * @param timedType
     * @return
     */
    public static boolean isTimelyhelving(String timedType) {
        return TIMELY_SHELVING.equals(timedType);
    }

    /**
     * 是否 推荐池更新
     *
     * @param timedType
     * @return
     */
    public static boolean isRecommendPoolUpdate(String timedType) {
        return RECOMMEND_POOL_UPDATE.equals(timedType);
    }
}
